export namespace="iam-system"
export app_name="iam"

# export app_name="mysql"
# export helm="bitnami/mysql"

# helm upgrade --create-namespace --install \
#     -n $namespace $app_name $helm \
#     --set auth.rootPassword="youling790313" \
#     --set auth.database=casdoor

export helm="bitnami/postgresql"
helm upgrade --create-namespace --install \
    -n $namespace $app_name $helm \
    --set auth.postgresPassword="youling790313" \
    --set auth.database=casdoor

kubectl apply -f casdoor_configmap.yaml
kubectl apply -f casdoor_k8s.yaml

# admin/123
